<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title><?php echo isset($title_for_layout) ? str_replace('Admin ', '', $title_for_layout) . ' - ' : '' ?><?php echo __('Admin'); ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <?php echo $this->Html->css('/backend/css/bootstrap.css'); ?>

<!--    --><?php //echo $this->Html->css('/backend/css/bootstrap-wysihtml5-0.0.2'); ?>
<!--    --><?php //echo $this->Html->css('/backend/css/datepicker'); ?>
<!--    --><?php //echo $this->Html->css('/backend/css/bootstrap-datetimepicker.min'); ?>

    <?php echo $this->Html->css('/backend/css/styles'); ?>
    <?php echo $this->Html->css('/backend/css/bootstrap-responsive.css'); ?>

<!--    --><?php //echo $this->Html->css('/css/lightbox/jquery.fancybox'); ?>
<!--    --><?php //echo $this->Html->css('/css/lightbox/helpers/jquery.fancybox-buttons'); ?>
<!--    --><?php //echo $this->Html->css('/css/lightbox/helpers/jquery.fancybox-thumbs.css'); ?>

    <?php echo $this->Html->script('/backend/js/jquery-1.9.1.min'); ?>

<!--    --><?php //echo $this->Html->script('/backend/js/wysihtml5-0.3.0_rc2'); ?>

    <?php echo $this->Html->script('/backend/js/bootstrap.min'); ?>
    <?php echo $this->Html->script('/backend/js/bootstrap-wysihtml5-0.0.2'); ?>
    <?php echo $this->Html->script('/backend/js/bootstrap-datepicker'); ?>
    <?php echo $this->Html->script('/backend/js/bootstrap-datetimepicker.min'); ?>
<!--    --><?php //echo $this->Html->script('/backend/js/jquery.dataTables'); ?>
<!--    --><?php //echo $this->Html->script('/js/lightbox/jquery.mousewheel-3.0.6.pack'); ?>
<!--    --><?php //echo $this->Html->script('/js/lightbox/jquery.fancybox'); ?>
<!--    --><?php //echo $this->Html->script('/js/lightbox/helpers/jquery.fancybox-buttons'); ?>
<!--    --><?php //echo $this->Html->script('/js/lightbox/helpers/jquery.fancybox-media'); ?>
<!--    --><?php //echo $this->Html->script('/js/lightbox/helpers/jquery.fancybox-thumbs'); ?>
    <?php echo $this->Html->script('/backend/js/scripts'); ?>

    <?php
    echo $this->Blocks->get('css');
    echo $this->Blocks->get('script');
    ?>

    <!--[if lt IE 9]>
    <?php echo $this->Html->script('/js/html5'); ?>
    <![endif]-->
    <?php echo $this->Html->meta('icon'); ?>
</head>
<body>
<div class="navbar navbar">
    <div class="navbar-inner">
        <div class="container-fluid">
            <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </a>
            <div class="nav-collapse">
                <?php

                if($this->Session->check('User') && $this->Session->read('User.0.User.role_id') == 1) {
                    echo $this->element('backend'.DS.'navigation');
                }
                ?>
            </div>
            <div class="nav-collapse pull-left">
                <ul class="nav">
                    <li><?php echo $this->Html->link(__('Visit Site'), '/'); ?></li>
                    <?php
                    if($this->Session->check('User')) {
                        ?>
                        <li><?php echo $this->Html->link(__('Logout'), array('controller' => 'users', 'action' => 'logout')); ?></li>
                    <?php
                    }
                    ?>
                </ul>
            </div>
        </div>
    </div>
</div>
<div class="container-fluid">
    <div class="row-fluid">
        <?php
            echo $this->fetch('content');
        ?>
    </div>
    <hr>
</div>
</body>
</html>
